<?php foreach ($role_data as $key): ?>
    <form class="form-horizontal" id="edit_role_form">
        <div class="ibox float-e-margins">
            <div class="ibox-title" style="border: none;">
                <h5 style="color: #00afef"><i>Roles</i></h5>
            </div>
            <div class="ibox-content">
                    <div class="form-group"> 
                        <label class="col-lg-4 control-label">Company</label>
                        <div class="col-lg-2">
                            <input type="hidden" name="role_id" value="<?php echo $key->role_id;?>">
                            <input readonly type="text" class="form-control" name="role_company" value="<?php echo $key->company_name; ?>">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-lg-4 control-label">Name</label>
                        <div class="col-lg-5">
                            <input readonly value="<?php echo $key->role_name; ?>" type="text" class="form-control" name="role_name_e">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-lg-4 control-label">Description</label> 
                        <div class="col-lg-5">
                            <input readonly type="text" class="form-control" name="role_description_e" value="<?php echo $key->description; ?>">
                        </div> 
                    </div>
                    <div class="form-group">
                        <label class="col-lg-4 control-label">Enable</label>
                        <div class="col-lg-1">
                            <input disabled type="checkbox" class="i-checks" name="role_status_e" value="ok" <?php echo $key->enable_flag == 'Y' ? 'checked' : ''; ?>>
                        </div>
                    </div>
                </form>
            </div>
            <div class="ibox-content">
                <table class="table table-bordered">
                    <thead>
                        <tr>
                            <th>Form</th>
                            <th>Module</th>
                            <th style="border-right: none;">Create</th>
                            <th style="border-right: none; border-left: none;">Update</th>
                            <th style="border-right: none; border-left: none;">Delete</th>
                            <th style="border-left: none;">ReadOnly</th>
                            <th>Enabled</th>
                        </tr>
                    </thead>
                    <tbody id="role-dtl-tbl-view">
                    </tbody>
                </table>
            </div>
        </div>
<?php endforeach; ?>

<script type="text/javascript">
    $(document).ready(function() {
        $('.i-checks').iCheck({
            checkboxClass: 'icheckbox_square-green',
            radioClass: 'iradio_square-green'
        });
    });
</script>